package com.oracle.service.imple;

import com.oracle.dao.MenuMapper;
import com.oracle.pojo.Menu;
import com.oracle.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("menuService")
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menu;

    @Override
    public List<Menu> findMenuByPid(Integer pid) {
        return menu.findMenuByPid(pid);
    }

    @Override
    public List<Menu> findRootMenu() {
        return menu.findRootMenu();
    }
}
